package com.hubery.designpattern.design.chain.impl;

import com.hubery.designpattern.design.chain.IChain;
import com.hubery.designpattern.design.chain.dto.ChainCtxDTO;
import com.hubery.designpattern.enums.ChainBizTypeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author: lxy
 * @date: 2023/2/27 23:42
 * @Description:
 */
@Slf4j
@Component
public class NotifyDeliveryChain implements IChain {

    @Override
    public ChainBizTypeEnum getChainBizTypeEnum() {
        return ChainBizTypeEnum.NOTIFY_DELIVERY;
    }

    @Override
    public boolean check(ChainCtxDTO dto) {
        return true;
    }

    @Override
    public void doWork(ChainCtxDTO dto) {
        log.info("通知发货");
    }
}
